package system

import (
	"mytest/initialize/database"
	"time"
)

func GetRedisJWT(name string) (error, string) {
	jwt, err := database.GetRedis().Get(name).Result()
	return err, jwt
}
func SetRedisJWT(name string, jwt string) error {
	timer := 60 * 60 * time.Second
	return database.GetRedis().Set(name, jwt, timer).Err()
}
